{strip}
	{if $settings.footer}
	<div id="footer">
	{eval var=$settings.footer|strip}<br>
	{*if $user.founder}
	js init: <span id="jsinit"></span>
	{/if*}
	</div>
	{/if}
	<div id="login" class="userModal1">
		<div class="inner">
			{include file='login_page.tpl'}
		</div>
	</div>
	<div id="registration" class="userModal1">
		<div class="inner">
			{include file='registration_page.tpl'}
		</div>
	</div>
	<div id="usettings" class="userModal1">
		<div class="inner">
			{include file='usersettings_page.tpl'}
		</div>
	</div>
	<div id="preferences" class="userModal1">
		<div class="inner">
			{include file='preferences_page.tpl'}
		</div>
	</div>
	<div id="lostpwd" class="userModal1">
		<div class="inner">
			{include file='lostpwd_page.tpl'}
		</div>
	</div>
</div>

{include file="inc_js.tpl"}
{if $smarty.server.HTTP_HOST == $settings.host and !$user.founder}
	<script type="text/javascript">
	  var _gaq = _gaq || [];
	  _gaq.push(['_setAccount', '{$settings.ga_code}']);
	  _gaq.push(['_trackPageview']);
	  (function() {ldelim}
	    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	  {rdelim})();
	</script>
{/if}
{*if $user.founder}
<script language="javascript" type="text/javascript">
now = new Date();
var endTime = now.getTime();
document.getElementById('jsinit').innerHTML = (endTime - startTime)+" ms";
</script>
{/if*}
</body>
</html>
{/strip}